﻿using ACServerApi.Extensions;
using TypeScriptProxyGenerator;
using System.ComponentModel;

namespace ACServerApi.Models
{
    [TSGen(TSGenTag.ClientModel)]
    [IniSettingsAttribute("PRACTICE")]
    public class ACConfigPractice : ACConfigBase
    {
        public ACConfigPractice()
        {
            // Default values
            this.Name = "Free Practice";
            this.Time = 0;
            this.WaitTime = 30;
        }

        [IniSettingsAttribute("NAME")]
        [DisplayName("Name")]
        [Description("")]
        public string Name { get; private set; }

        [IniSettingsAttribute("TIME")]
        [DisplayName("Time")]
        [Description("session length in minutes")]
        public int Time { get; set; }

        [IniSettingsAttribute("WAIT_TIME")]
        [DisplayName("Wait Time")]
        [Description("Seconds before the start of the session")]
        public int WaitTime { get; set; }
    }
}